<%@ page import="cook.Ingredient" %>



			<div class="control-group fieldcontain ${hasErrors(bean: ingredientInstance, field: 'name', 'error')} ">
				<label for="name" class="control-label"><g:message code="ingredient.name.label" default="Name" /></label>
				<div class="controls">
					<g:textField name="name" value="${ingredientInstance?.name}"/>
					<span class="help-inline">${hasErrors(bean: ingredientInstance, field: 'name', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: ingredientInstance, field: 'measuringUnit', 'error')} required">
				<label for="measuringUnit" class="control-label"><g:message code="ingredient.measuringUnit.label" default="Measuring Unit" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:select id="measuringUnit" name="measuringUnit.id" from="${modal.MeasuringUnit.list()}" optionKey="id" required="" value="${ingredientInstance?.measuringUnit?.id}" class="many-to-one"/>
					<span class="help-inline">${hasErrors(bean: ingredientInstance, field: 'measuringUnit', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: ingredientInstance, field: 'cost', 'error')} required">
				<label for="cost" class="control-label"><g:message code="ingredient.cost.label" default="Cost" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:field type="number" name="cost" step="0.01" min="0.0" required="" value="${ingredientInstance.cost}"/>
					<span class="help-inline">${hasErrors(bean: ingredientInstance, field: 'cost', 'error')}</span>
				</div>
			</div>

